package org.jeecg.modules.networking.util;

import java.util.HashMap;
import java.util.Map;

public class FunctionMapper {
    private static final Map<String, String> function = new HashMap<>();
    static {
        function.put("A", "A");//非营运
        function.put("F", "C");//货运
        function.put("G", "D");//租赁
        function.put("K", "E");//工程抢险
        function.put("Z", "Z");//其他
    }

    public static String getFunction(String vehicleType) {
        return function.getOrDefault(vehicleType, "Z");
    }
}
